#include "Interpolation.h"

int main()
{
    vector<double> x, y, z;
    double a[10] = {0, 6, 10, 13, 17, 20, 28};
    double b[10] = {6.67, 17.3, 42.7, 37.3, 30.1, 29.3, 28.7};
    double c[10] = {6.67, 16.1, 18.9, 15.0, 10.6, 9.44, 8.89};
    pushback(x, a, 7);
    pushback(y, b, 7);
    pushback(z, c, 7);
    Newton np1(6, x, y);
    Newton np2(6, x, z);
    np1.Newtonpolation();
    np2.Newtonpolation();
    np1.printpolynomial();
    np2.printpolynomial();
}